/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.clicarros.util;

import br.com.clicarros.processos.GerenciadorProcesso;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 *
 * @author Bruno
 */
public class ListenerIniciar implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        GerenciadorProcesso.agendar();
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
    	GerenciadorProcesso.finalizarAgendamento();
    }
    
}
